using NodeCanvas.Variables;

namespace NodeCanvas.Actions
{
	[Category("✫ Utility")]
	public class Wait : ActionTask
	{
		public BBFloat waitTime = new BBFloat
		{
			value = 1f
		};

		protected override string info
		{
			get
			{
				return string.Concat("Wait ", waitTime, " sec.");
			}
		}

		protected override void OnUpdate()
		{
			if (base.elapsedTime >= waitTime.value)
			{
				EndAction();
			}
		}
	}
}
